import request from '@/utils/request';

interface Role {
  id: number;
  name: string;
  description: string;
}

export const roleApi = {
  getRoles: () => request.get<Role[]>('/api/roles'),
  createRole: (data: Role) => request.post('/api/roles', data),
};
